package com.yanqu.road.logic.bussiness.rank;

import com.yanqu.road.entity.rank.cross.CrossUserRank;
import com.yanqu.road.entity.rank.stronghold.CrossActivityUnionRank;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class CrossStrongholdActivityRankBusiness {
    public static Map<Integer, Map<Integer, Map<Integer, LinkedList<CrossUserRank>>>> getCrossStrongholdRankListMap(List<Integer> activityIdList) {
        return DaoHelper.getCrossStrongholdActivityUserRankDaoImpl().getCrossActivityNewRankListMap(activityIdList);
    }

    public static Map<Integer, Map<Integer, Map<Integer, LinkedList<CrossActivityUnionRank>>>> getCrossActivityUnionRankListMap(List<Integer> activityIdList) {
        return DaoHelper.getCrossActivityUnionRankDaoImpl().getCrossActivityUnionRankListMap(activityIdList);
    }

    public static boolean updateCrossActivityUnionRankList(int activityId, int groupId, int conditionType, LinkedList<CrossActivityUnionRank> newRankList) {
        return DaoHelper.getCrossActivityUnionRankDaoImpl().updateCrossActivityUnionRankList(activityId, groupId, conditionType, newRankList);
    }

    public static boolean updateCrossActivityNewRankList(List<CrossUserRank> rankList, int groupId, int conditionType) {
        return DaoHelper.getCrossStrongholdActivityUserRankDaoImpl().updateCrossActivityNewRankList(rankList, groupId, conditionType);
    }
}
